package com.ubb.damate.jasper.report.service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;

import com.ubb.damate.model.EclipseUsageModel;
import com.ubb.damate.model.User;


public final class DataMock {
	
	public Map<User, EclipseUsageModel> eclipseUsageServiceMock() {
		
		Map<User, EclipseUsageModel> 	data 		= new HashMap<User, EclipseUsageModel>();
		EclipseUsageModel				usageModel 	= new EclipseUsageModel();
		List<Integer>					dataList	= new ArrayList<Integer>();
		Random 							random 		= new Random();

		
		
		for(int i = 0; i < 5; i++ ){
			
			User user = new User();
			user.setUsername("user" + i);
			user.setPassword("password");
			
			for(int j = 0; j < 12; j++) {
				dataList.add(random.nextInt(10));
			}
			
			usageModel.setChanges(dataList);
			usageModel.setOpenSeconds(dataList);
			
			data.put(user, usageModel);
		}
		return data;
	}
	
	
	
}